]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Wanda: don't recreate the texture if the icon size doesn't change
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 16 Sep 2012 17:35:41 +0000 (19:35 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 17 Sep 2012 17:49:57 +0000 (19:49 +0200)
Wanda flickers if the animation is recreated, but we don't need to if
the size doesn't change (as we're not affected by icon theme changes).

https://bugzilla.gnome.org/show_bug.cgi?id=684154

js/ui/wanda.js

index c37ff299233a771eb1635fd9879b19943ed3bd2a..378c7ad50b75ce67b1fc593a618a07a324082852 100644 (file)
@@ -77,11 +77,16 @@ const WandaIcon = new Lang.Class({
             }
         }));
 
-        this._i = 0;
-
         return this._animations;
     },
 
+    _createIconTexture: function(size) {
+        if (size == this.iconSize)
+            return;
+
+        this.parent(size);
+    },
+
     _update: function() {
         let n = this._animations.get_n_children();
         if (n == 0) {